package com.qq.day02;

public class Circle implements ShapePara{
    @Override
    public int getArea() {//获得图形的面积
        return (int)(PI * radius*radius);
    }

    @Override
    public int getCircumference() {//获得图形的周长
        return (int) (Circle.PI*2*radius);
    }
   static double PI=3.14;
    public double radius;//半径

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public static double getPI() {
        return PI;
    }

    public static void setPI(double PI) {
        Circle.PI = PI;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
